package cloud.lysky.java.on.design_pattern.strategy;

/**
 * @author luoly
 * @describe
 * @date 2022-08-20 10:17
 **/
//校验字符串是否是数字
public class IsNumeric  implements ValidationStrategy{
    @Override
    public boolean execute(String s) {
        return s.matches("\\d+");
    }
}